﻿using Hourglass.Qrobot.Utils;

namespace Hourglass.Qrobot.States
{
    public class LoginedWarmUpState : QQState
    {
        public override void Handler(QQContext context)
        {
            var qq = new SmartQQ();
            var milliscond = TimeHelper.MilliscondFromSeventy();
            context.Qq = qq;
            context.ReloadOwnerInfo(milliscond);
            context.ReloadFriends(milliscond);
            context.ReloadGroups(milliscond);
            context.ReloadDisscusses(milliscond);

            context.State = new LoginedState();
        }
    }
}
